package com.l2j.test.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 合同签约序号清单
 * @TableName link_contr_sign_serial_num
 */
@TableName(value ="link_contr_sign_serial_num")
@Data
public class LinkContrSignSerialNum implements Serializable  {
    /**
     * 合同签约序号主键
     */
    @TableId
    private Long lcspsnId;

    /**
     * 财务主体编码
     */
    private String finaOrg;

    /**
     * 财务主体
     */
    private String finaOrgName;

    /**
     * 签约序号
     */
    private String serialNumber;

    /**
     * 签约前缀
     */
    private String serialNumberPrefix;

    /**
     * 品类
     */
    private String classCode;

    /**
     * 系数
     */
    private BigDecimal ratio;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否合同内
     */
    private String inContract;

    /**
     * 删除标记
     */
    @TableLogic
    private Integer deleteFlag;

    /**
     * 创建人
     */
    private Integer createdBy;

    /**
     * 创建时间
     */
    private Date creationDate;

    /**
     * 更新人
     */
    private Integer lastUpdatedBy;

    /**
     * 更新时间
     */
    private Date lastUpdateDate;

    /**
     * 版本号
     */
    private Integer versionNum;

    /**
     * 合同类型
     */
    private String contractType;

    /**
     * 产品属性
     */
    private String productAttribute;

    /**
     * 项目属性
     */
    private String projectAttribute;

    /**
     * 经销商类型
     */
    private String dealerTypes;

    /**
     * 是否生效0:生效,1:不生效
     */
    private String isEffective;

    /**
     * 年度
     */
    private String annual;

    /**
     * 签约号具体值-测试用
     */
    private Integer serialNumberValue;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LinkContrSignSerialNum other = (LinkContrSignSerialNum) that;
        return (this.getLcspsnId() == null ? other.getLcspsnId() == null : this.getLcspsnId().equals(other.getLcspsnId()))
            && (this.getFinaOrg() == null ? other.getFinaOrg() == null : this.getFinaOrg().equals(other.getFinaOrg()))
            && (this.getFinaOrgName() == null ? other.getFinaOrgName() == null : this.getFinaOrgName().equals(other.getFinaOrgName()))
            && (this.getSerialNumber() == null ? other.getSerialNumber() == null : this.getSerialNumber().equals(other.getSerialNumber()))
            && (this.getSerialNumberPrefix() == null ? other.getSerialNumberPrefix() == null : this.getSerialNumberPrefix().equals(other.getSerialNumberPrefix()))
            && (this.getClassCode() == null ? other.getClassCode() == null : this.getClassCode().equals(other.getClassCode()))
            && (this.getRatio() == null ? other.getRatio() == null : this.getRatio().equals(other.getRatio()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getInContract() == null ? other.getInContract() == null : this.getInContract().equals(other.getInContract()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreationDate() == null ? other.getCreationDate() == null : this.getCreationDate().equals(other.getCreationDate()))
            && (this.getLastUpdatedBy() == null ? other.getLastUpdatedBy() == null : this.getLastUpdatedBy().equals(other.getLastUpdatedBy()))
            && (this.getLastUpdateDate() == null ? other.getLastUpdateDate() == null : this.getLastUpdateDate().equals(other.getLastUpdateDate()))
            && (this.getVersionNum() == null ? other.getVersionNum() == null : this.getVersionNum().equals(other.getVersionNum()))
            && (this.getContractType() == null ? other.getContractType() == null : this.getContractType().equals(other.getContractType()))
            && (this.getProductAttribute() == null ? other.getProductAttribute() == null : this.getProductAttribute().equals(other.getProductAttribute()))
            && (this.getProjectAttribute() == null ? other.getProjectAttribute() == null : this.getProjectAttribute().equals(other.getProjectAttribute()))
            && (this.getDealerTypes() == null ? other.getDealerTypes() == null : this.getDealerTypes().equals(other.getDealerTypes()))
            && (this.getIsEffective() == null ? other.getIsEffective() == null : this.getIsEffective().equals(other.getIsEffective()))
            && (this.getAnnual() == null ? other.getAnnual() == null : this.getAnnual().equals(other.getAnnual()))
            && (this.getSerialNumberValue() == null ? other.getSerialNumberValue() == null : this.getSerialNumberValue().equals(other.getSerialNumberValue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLcspsnId() == null) ? 0 : getLcspsnId().hashCode());
        result = prime * result + ((getFinaOrg() == null) ? 0 : getFinaOrg().hashCode());
        result = prime * result + ((getFinaOrgName() == null) ? 0 : getFinaOrgName().hashCode());
        result = prime * result + ((getSerialNumber() == null) ? 0 : getSerialNumber().hashCode());
        result = prime * result + ((getSerialNumberPrefix() == null) ? 0 : getSerialNumberPrefix().hashCode());
        result = prime * result + ((getClassCode() == null) ? 0 : getClassCode().hashCode());
        result = prime * result + ((getRatio() == null) ? 0 : getRatio().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getInContract() == null) ? 0 : getInContract().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
        result = prime * result + ((getLastUpdatedBy() == null) ? 0 : getLastUpdatedBy().hashCode());
        result = prime * result + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode());
        result = prime * result + ((getVersionNum() == null) ? 0 : getVersionNum().hashCode());
        result = prime * result + ((getContractType() == null) ? 0 : getContractType().hashCode());
        result = prime * result + ((getProductAttribute() == null) ? 0 : getProductAttribute().hashCode());
        result = prime * result + ((getProjectAttribute() == null) ? 0 : getProjectAttribute().hashCode());
        result = prime * result + ((getDealerTypes() == null) ? 0 : getDealerTypes().hashCode());
        result = prime * result + ((getIsEffective() == null) ? 0 : getIsEffective().hashCode());
        result = prime * result + ((getAnnual() == null) ? 0 : getAnnual().hashCode());
        result = prime * result + ((getSerialNumberValue() == null) ? 0 : getSerialNumberValue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", lcspsnId=").append(lcspsnId);
        sb.append(", finaOrg=").append(finaOrg);
        sb.append(", finaOrgName=").append(finaOrgName);
        sb.append(", serialNumber=").append(serialNumber);
        sb.append(", serialNumberPrefix=").append(serialNumberPrefix);
        sb.append(", classCode=").append(classCode);
        sb.append(", ratio=").append(ratio);
        sb.append(", remark=").append(remark);
        sb.append(", inContract=").append(inContract);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", creationDate=").append(creationDate);
        sb.append(", lastUpdatedBy=").append(lastUpdatedBy);
        sb.append(", lastUpdateDate=").append(lastUpdateDate);
        sb.append(", versionNum=").append(versionNum);
        sb.append(", contractType=").append(contractType);
        sb.append(", productAttribute=").append(productAttribute);
        sb.append(", projectAttribute=").append(projectAttribute);
        sb.append(", dealerTypes=").append(dealerTypes);
        sb.append(", isEffective=").append(isEffective);
        sb.append(", annual=").append(annual);
        sb.append(", serialNumberValue=").append(serialNumberValue);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}